class AppColors {
  static const AppBarColor = 0xff303030;
  static const TabIconNormal = 0xff999999;
  static const TabIconActive = 0xff46c11b;
  static const AppBarPopupMenuColor = 0xffffffff;
  static const TitleTextColor = 0xff353535;
  static const ConversationItemBg = 0xffffffff;
  static const DesTextColor = 0xff9e9e9e;
  static const DividerColor = 0xffd9d9d9;
  static const NotifyDotBg = 0xffff3e3e;
  static const NotifyDotText = 0xffffffff;
  static const ConversationMuteIcon = 0xffd8d8d8;
  static const DeviceInfoItemBg = 0xfff5f5f5;
  static const DeviceInfoItemText = 0xff606062;
  static const DeviceInfoItemIcon = 0xff606062;
  static const ContactGroupTitleBg = 0xffebebeb;
  static const ContactGroupTitleText = 0xff888888;
//  static const IndexLetterBoxBg = Colors.black45;
}

class Constants {
  static const IconFontFamily = "appIconFont";

}




/*
*
class NavigationIconView {
  final String _title;
  IconData _icon;
  IconData _activeIcon;
  final BottomNavigationBarItem item;

//  navigationIconView({Key: Key,this.title,this.icon,this
//  .activeIcon,this.item});
  NavigationIconView(
      {Key key, String title, IconData icon, IconData iconActive, BottomNavigationBarItem item})
      :
        _icon = icon,
        _title = title,
        _activeIcon = iconActive,
        item = BottomNavigationBarItem(
            icon: Icon(icon),
            activeIcon: Icon(iconActive),
            title: Text(title),
            backgroundColor: Colors.white
        );
}

class _HomeScreenState extends State<homeScreen> {
  List<NavigationIconView> _navigationView;
  int _currentIndex = 0;

  @override
  void initState() {
    // 只初始化一次
    super.initState();
    _navigationView = [
      NavigationIconView(
        title: "微信",
        icon: IconData(
          0xe62b,
          fontFamily: Constants.IconFontFamily,
        ),
        iconActive: IconData(
          0xe62f,
          fontFamily: Constants.IconFontFamily,
        ),
      ),
      NavigationIconView(
        title: "通讯录",
        icon: IconData(
          0xe655,
          fontFamily: Constants.IconFontFamily,
        ),
        iconActive: IconData(
          0xe6c2,
          fontFamily: Constants.IconFontFamily,
        ),
      ),
      NavigationIconView(
        title: "发现",
        icon: IconData(
          0xe629,
          fontFamily: Constants.IconFontFamily,
        ),
        iconActive: IconData(
          0xe746,
          fontFamily: Constants.IconFontFamily,
        ),
      ),
      NavigationIconView(
        title: "我的",
        icon: IconData(
          0xe63b,
          fontFamily: Constants.IconFontFamily,
        ),
        iconActive: IconData(
          0xe632,
          fontFamily: Constants.IconFontFamily,
        ),
      ),

    ];
  }


  @override
  Widget build(BuildContext context) {
    final BottomNavigationBar bottomBar = BottomNavigationBar(
      fixedColor: Colors.blue,
      items: _navigationView.map((NavigationIconView view) {
        return view.item;
      }).toList(),
      currentIndex: _currentIndex,
      type: BottomNavigationBarType.fixed,
      onTap: (int index) {
        setState(() {
          _currentIndex = index;
        });
      },

    );
    return Scaffold(
      appBar: AppBar(
        title: Text('微信'),
        backgroundColor: Colors.black,
        actions: <Widget>[
          IconButton(
            icon: Icon(Icons.search,size: 30.0,),
            onPressed: () {
              print("click Search");
            },
          ),
          IconButton(
            icon: Icon(Icons.add,size: 30.0),
            onPressed: (){
              print("click Add");
            },
          ),
          //边距，插在哪就是,
          Container(width: 20.0),
        ],
      ),
      body:
        Container(
          color: Colors.red,
        ),
      bottomNavigationBar: bottomBar,
    );


  }
}*/